package com.mezz.bones.im.common.domain.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: zhuang
 * @Date: 2024/12/10 10:50
 * @Description: 用户客户端信息-redis缓存模型
 * @Version: 1.0
 **/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ImUserClientInfo implements Serializable {

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("用户端类型 user-用户 srm-供应商 saas-平台端")
    private String userTyp;

    @ApiModelProperty("客户端类型")
    private String deviceType;

    @ApiModelProperty("客户端设备号信息")
    private String imei;

    /**
     * @see com.mezz.bones.im.common.enums.OnlineStatusEnum
     */
    @ApiModelProperty("用户在线状态ONLINE 离线OFFLINE")
    private String online;

    @ApiModelProperty("登录IP")
    private String lastLoginIp;

    @ApiModelProperty("登录时间")
    private String lastLoginTime;

    @ApiModelProperty("最后一次离线时间")
    private String lastOfflineTime;

}
